package org.hospital.entity;
// default package

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * Log entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="log"
    ,catalog="hospital"
)

public class Log  implements java.io.Serializable {


    // Fields    

     private Integer logId;
     private Integer employeeId;
     private String content;
     private String operate;
     private Timestamp operateTime;


    // Constructors

    /** default constructor */
    public Log() {
    }

    
    /** full constructor */
    public Log(Integer employeeId, String content, String operate, Timestamp operateTime) {
        this.employeeId = employeeId;
        this.content = content;
        this.operate = operate;
        this.operateTime = operateTime;
    }

   
    // Property accessors
    @Id @GeneratedValue
    
    @Column(name="logId", unique=true, nullable=false)

    public Integer getLogId() {
        return this.logId;
    }
    
    public void setLogId(Integer logId) {
        this.logId = logId;
    }
    
    @Column(name="employeeId", nullable=false)

    public Integer getEmployeeId() {
        return this.employeeId;
    }
    
    public void setEmployeeId(Integer employeeId) {
        this.employeeId = employeeId;
    }
    
    @Column(name="content", nullable=false, length=500)

    public String getContent() {
        return this.content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }
    
    @Column(name="operate", nullable=false)

    public String getOperate() {
        return this.operate;
    }
    
    public void setOperate(String operate) {
        this.operate = operate;
    }
    
    @Column(name="operateTime", nullable=false, length=19)

    public Timestamp getOperateTime() {
        return this.operateTime;
    }
    
    public void setOperateTime(Timestamp operateTime) {
        this.operateTime = operateTime;
    }
   








}